all:
	$(MAKE) bdlex exceptions bdlex.idx exceptions.idx
clean:
	rm bdlex.idx exceptions.idx exceptions bdlex

bdlex: bdlex.dict
	cat $< | grep -v ' '| tr '!' '\000' > $@

exceptions: exceptions.dict
	sort -u $< | grep -v ' '| tr '!' '\000' > $@

bdlex.idx: bdlex.dict
	cat $< | grep -v ' '| ../../bin/mul/index > $@

exceptions.idx: exceptions.dict
	sort -u $< | grep -v ' '| ../../bin/mul/index > $@
